package yxy.game.pm2.bean.db.po;

import yxy.apple.db.ResultObjectBuilder;

import java.util.Date;

/**
 * @author James
 * @date 2022/1/22 16:21
 **/
public class ArenaRecordPo {
    private String playerCode;
    private String attackerCode;
    private String battleResult;
    private Date date;
    private String defenderCode;
    private String recordCode;
    private int scoreChangeAttacker;
    private int scoreChangeDefender;
    private int syncdb;
    private long updateTime;//更新时间

    public static ResultObjectBuilder<ArenaRecordPo> builder = rs -> {
        ArenaRecordPo arenarecordPo = new ArenaRecordPo();
        arenarecordPo.setPlayerCode(rs.getString("pCode"));
        arenarecordPo.setAttackerCode(rs.getString("attackerCode"));
        arenarecordPo.setBattleResult(rs.getString("battleResult"));
        arenarecordPo.setDate(rs.getDate("date"));
        arenarecordPo.setDefenderCode(rs.getString("defenderCode"));
        arenarecordPo.setRecordCode(rs.getString("recordCode"));
        arenarecordPo.setScoreChangeAttacker(rs.getInt("scoreChangeAttacker"));
        arenarecordPo.setScoreChangeDefender(rs.getInt("scoreChangeDefender"));
        arenarecordPo.setSyncdb(rs.getInt("syncdb"));
        arenarecordPo.setUpdateTime(rs.getLong("updateTime"));
        return arenarecordPo;
    };

    public String getPlayerCode() {
        return playerCode;
    }

    public void setPlayerCode(String playerCode) {
        this.playerCode = playerCode;
    }

    public String getAttackerCode() {
        return attackerCode;
    }

    public void setAttackerCode(String attackerCode) {
        this.attackerCode = attackerCode;
    }

    public String getBattleResult() {
        return battleResult;
    }

    public void setBattleResult(String battleResult) {
        this.battleResult = battleResult;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getDefenderCode() {
        return defenderCode;
    }

    public void setDefenderCode(String defenderCode) {
        this.defenderCode = defenderCode;
    }

    public String getRecordCode() {
        return recordCode;
    }

    public void setRecordCode(String recordCode) {
        this.recordCode = recordCode;
    }

    public int getScoreChangeAttacker() {
        return scoreChangeAttacker;
    }

    public void setScoreChangeAttacker(int scoreChangeAttacker) {
        this.scoreChangeAttacker = scoreChangeAttacker;
    }

    public int getScoreChangeDefender() {
        return scoreChangeDefender;
    }

    public void setScoreChangeDefender(int scoreChangeDefender) {
        this.scoreChangeDefender = scoreChangeDefender;
    }

    public int getSyncdb() {
        return syncdb;
    }

    public void setSyncdb(int syncdb) {
        this.syncdb = syncdb;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }
}
